# 初始化哈希表
hmap: dict = {}

# 添加操作
# 在哈希表中添加键值对 (key, value)
hmap[12863] = "小哈"
hmap[12908] = "小罗"
hmap[16750] = "小算"
hmap[13276] = "小法"
hmap[10583] = "小鸭"

# 查询操作
# 向哈希表中输入键 key 得到值 value
name: str = hmap[12863]
print(name)

# 删除操作
hmap.pop(10583)

# 遍历hashmap
for key, value in hmap.items():
    print(key, value)

# 遍历key
for key in hmap.keys():
    print(key)

# 遍历 val
for val in hmap.values():
    print(val)

